//
//  TitleView.m
//  MyShiDiQuan
//
//  Created by cvicseks-mac1 on 16/9/7.
//  Copyright © 2016年 cvicseks-mac1. All rights reserved.
//

#import "TitleView.h"
#import "needfile.h"

@implementation TitleView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void)setTitleStyleWithTitle:(NSString *)title
{
    self.backgroundColor = [UIColor whiteColor];
    [self setImage:[UIImage imageNamed:@"tab4_down"] forState:UIControlStateNormal];
    [self setTitle:title forState:UIControlStateNormal];
    [self setTintColor:[UIColor redColor]];
    self.titleLabel.font = [UIFont systemFontOfSize:15];
//    self.tintColor = SYSCOLOR;
    [self setTitleColor:SYSCOLOR forState:UIControlStateNormal];
    [self.layer setMasksToBounds:YES];
    [self.layer setCornerRadius:10.0]; //设置矩形四个圆角半径
//    [self.layer setBorderWidth:1.0]; //边框宽度
}

@end
